package model;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.*;
import junit.framework.Assert;
import junit.framework.TestCase;
import com.sun.org.apache.bcel.internal.generic.NEW;

import controller.TestControllerBuilder;

import model.ObstacleItem;
import model.RealTile;

public class testObstacleItem extends TestCase{
	
	public static void main(String args[])
	{
		junit.textui.TestRunner.run(testObstacleItem.class);
	}
	
	@Test public void testConstructors()
	{
		RealTile rt1 = new RealTile();
		ObstacleItem ot = new ObstacleItem(rt1);
		ObstacleItem ott = new ObstacleItem(rt1, true);
		ObstacleItem otf = new ObstacleItem(rt1, false);
		Assert.assertTrue(ot.isImpassable());
		Assert.assertTrue(ott.isImpassable());
		Assert.assertFalse(otf.isImpassable());
	}
}
